<?php
namespace app\controllers;
use Yii;
use yii\web\Controller;
//use app\model\Setting;

class IndexController extends Controller
{
    //public $settingModel;


    public function __construct()
    {
        $this->settingModel = new Setting();
    }

    /**
     * 首页渲染模板
     */
    public function actionIndex(){
        //每次进入浏览数+1
        echo 1;die;
        //$this->render('index');
    }

    /**
     * 文章列表
     */
    public function actionAjaxgetblog(){

        $page = Yii::$app->request->get('page') ? Yii::$app->request->get('page') : 1;
        $cId = Yii::$app->request->get('cId') ? Yii::$app->request->get('cId') : 0;
        $lId = Yii::$app->request->get('lId') ? Yii::$app->request->get('lId') : 0;

    }
}